package it.fuesi.synotools.services.client;

import it.fuesi.synotools.model.btsearch.BTSearchResultsListResponse;
import it.fuesi.synotools.model.btsearch.BTSearchStartResponse;
import it.fuesi.synotools.services.constants.Service;
import it.fuesi.synotools.services.constants.ServiceType;
import retrofit.http.GET;
import retrofit.http.Query;

/**
 * Created by pascotto on 16/10/14.
 */
@ServiceType(Service.Synology)
public interface BTSearchClient {

    @GET("/webapi/DownloadStation/btsearch.cgi?api=SYNO.DownloadStation.BTSearch&version=1&method=start&module=enabled")
    BTSearchStartResponse start(@Query("keyword") String keyword);

    @GET("/webapi/DownloadStation/btsearch.cgi?api=SYNO.DownloadStation.BTSearch&version=1&method=list&sort_by=seeds&sort_direction=desc")
    BTSearchResultsListResponse list(@Query("taskid") String taskid);

}
